package com.ws.ssmzongjie3.service.impl;

import com.ws.ssmzongjie3.bean.Business;
import com.ws.ssmzongjie3.mapper.BusinessMapper;
import com.ws.ssmzongjie3.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class BusinessServiceImpl implements BusinessService {
    @Autowired
    private BusinessMapper businessMapper;
    @Override
    public void insertBusiness(Business business) {
        businessMapper.insertBusiness(business);
    }

    @Override
    public void deleteBusiness(Business business) {
        businessMapper.deleteBusiness(business);
    }

    @Override
    public Business getBusinessById(Business business) {
        return businessMapper.getBusinessById(business);
    }

    @Override
    public void updateBusiness(Business business) {
        businessMapper.updateBusiness(business);
    }

    @Override
    public List<Business> listBusiness(Business business) {
        return businessMapper.listBusiness(business);
    }
}
